package sanshi.contect.proxy.v1;

/**
 * tank move time: 1076ms
 * tank move time: 5826ms
 * tank move time: 1238ms
 * tank move time: 1165ms
 * benchmark：基准
 */
public class Main {
    public static void main(String[] args) {
        recordTankMoveTime(new Tank());

    }

    public static void recordTankMoveTime(Tank tank){
        long startTime = System.currentTimeMillis();
        tank.move();
        long endTime = System.currentTimeMillis();
        System.out.println("tank move time: " + (endTime - startTime) + "ms");
    }
}
